protected function LayoutParagraphsBuilder::editAccess in Layout Paragraphs 2.0.x
Returns an AccessResult object.
Parameters
\Drupal\paragraphs\ParagraphInterface $paragraph: The paragraph entity.
Return value
bool True if user can edit.
1 call to LayoutParagraphsBuilder::editAccess()
- LayoutParagraphsBuilder::buildComponent in src/
Element/ LayoutParagraphsBuilder.php - Returns the build array for a single layout component.
File
- src/
Element/ LayoutParagraphsBuilder.php, line 535
Class
- LayoutParagraphsBuilder
- Defines a render element for building the Layout Builder UI.
Namespace
Drupal\layout_paragraphs\ElementCode
protected function editAccess(ParagraphInterface $paragraph) {
return $paragraph
->access('update');
}