protected function LayoutParagraphsLayoutRefreshTrait::needsRefresh in Layout Paragraphs 2.0.x
Returns TRUE if the layout needs to be refreshed.
Return value
bool Whether or not the layout needs to be refreshed.
3 calls to LayoutParagraphsLayoutRefreshTrait::needsRefresh()
- DeleteComponentForm::deleteComponent in src/
Form/ DeleteComponentForm.php - Ajax callback - deletes component and closes the form.
- EditComponentForm::successfulAjaxSubmit in src/
Form/ EditComponentForm.php - Allows the form to respond to a successful AJAX submission.
- InsertComponentForm::successfulAjaxSubmit in src/
Form/ InsertComponentForm.php - Allows the form to respond to a successful AJAX submission.
File
- src/
LayoutParagraphsLayoutRefreshTrait.php, line 98
Class
- LayoutParagraphsLayoutRefreshTrait
- Trait for managing refresh state for layouts.
Namespace
Drupal\layout_paragraphsCode
protected function needsRefresh() {
$event = new LayoutParagraphsUpdateLayoutEvent($this->originalLayoutParagraphsLayout, $this->layoutParagraphsLayout);
$this
->eventDispatcher()
->dispatch(LayoutParagraphsUpdateLayoutEvent::EVENT_NAME, $event);
return $event->needsRefresh;
}