'access block library',
'create basic block content',
'edit any basic block content',
'delete any basic block content',
]);
} /**
* {@inheritdoc}
*/
protected function getNewEntityValues($langcode) { return ['info' =>
mb_strtolower($this->
randomMachineName())] + parent::
getNewEntityValues($langcode);
} /**
* Returns an edit array containing the values to be posted.
*/
protected function getEditValues($values,
$langcode,
$new = FALSE
) { $edit = parent::
getEditValues($values,
$langcode,
$new);
foreach ($edit as $property =>
$value) { if ($property == 'info'
) { $edit['info[0][value]'
] =
$value;
unset($edit[$property]);
}