@@ -17,7 +17,7 @@ class LayoutRendererEditorParagraphs extends LayoutRendererEditor {
1717 /**
1818 * {@inheritdoc}
1919 */
20- function __construct (Layout $ layout , array $ renderer_plugin ) {
20+ public function __construct (Layout $ layout , array $ renderer_plugin ) {
2121 $ template_id = $ layout ->layout_template ?? 'default ' ;
2222
2323 $ template_info = layout_paragraphs_get_layout_template_info ($ template_id );
@@ -39,7 +39,7 @@ class LayoutRendererEditorParagraphs extends LayoutRendererEditor {
3939 /**
4040 * {@inheritdoc}
4141 */
42- function addMeta () {
42+ public function addMeta () {
4343 parent ::addMeta ();
4444 backdrop_add_library ('system ' , 'ui.sortable ' );
4545 backdrop_add_js (backdrop_get_path ('module ' , 'layout ' ) . '/js/layout.admin.js ' );
@@ -49,7 +49,7 @@ class LayoutRendererEditorParagraphs extends LayoutRendererEditor {
4949 /**
5050 * {@inheritdoc}
5151 */
52- function render () {
52+ public function render () {
5353 $ this ->addMeta ();
5454
5555 $ output = '<div class="layout--paragraphs-edit-main"> ' ;
@@ -71,7 +71,7 @@ class LayoutRendererEditorParagraphs extends LayoutRendererEditor {
7171 * @return string
7272 * The HTML string representing the entire rendered, themed layout.
7373 */
74- function renderLayout () {
74+ public function renderLayout () {
7575 if (empty ($ this ->prep_run )) {
7676 $ this ->prepare ();
7777 }
@@ -102,7 +102,7 @@ class LayoutRendererEditorParagraphs extends LayoutRendererEditor {
102102 /**
103103 * {@inheritdoc}
104104 */
105- function renderRegion ($ region_id , $ blocks ) {
105+ public function renderRegion ($ region_id , $ blocks ) {
106106 $ output = '' ;
107107 $ content = implode ('' , $ blocks );
108108 $ region_buttons = $ this ->getRegionLinks ($ region_id );
@@ -121,7 +121,7 @@ class LayoutRendererEditorParagraphs extends LayoutRendererEditor {
121121 /**
122122 * Render the Page Title region in the Layout Editor.
123123 */
124- function renderTitleRegion ($ region_id ) {
124+ public function renderTitleRegion ($ region_id ) {
125125 $ region_buttons = $ this ->getRegionLinks ($ region_id );
126126 $ description = layout_get_title_description ($ this ->layout );
127127
@@ -139,7 +139,7 @@ class LayoutRendererEditorParagraphs extends LayoutRendererEditor {
139139 /**
140140 * {@inheritdoc}
141141 */
142- function renderBlock ($ block ) {
142+ public function renderBlock ($ block ) {
143143 $ aria_label = $ this ->getAriaLabel ($ block );
144144 $ buttons = $ this ->getBlockLinks ($ block );
145145 $ content = $ block ->getAdminPreview ();
@@ -175,7 +175,7 @@ class LayoutRendererEditorParagraphs extends LayoutRendererEditor {
175175 * Overrides LayoutRendererStandard::prepareBlocks() to process Layout
176176 * Paragraphs blocks.
177177 */
178- function prepareBlocks (array $ blocks ) {
178+ public function prepareBlocks (array $ blocks ) {
179179 // Use local variables as writing to them is very slightly faster.
180180 $ first = $ normal = $ last = array ();
181181
@@ -234,7 +234,7 @@ class LayoutRendererEditorParagraphs extends LayoutRendererEditor {
234234 /**
235235 * {@inheritdoc}
236236 */
237- function renderBlocks () {
237+ public function renderBlocks () {
238238 $ this ->rendered ['blocks ' ] = array ();
239239 foreach ($ this ->prepared ['blocks ' ] as $ uuid => $ block ) {
240240 $ block ->uuid = $ uuid ;
@@ -246,7 +246,7 @@ class LayoutRendererEditorParagraphs extends LayoutRendererEditor {
246246 /**
247247 * Returns an aria label for a block.
248248 */
249- function getAriaLabel ($ block ) {
249+ public function getAriaLabel ($ block ) {
250250 return t ('Draggable block !title ' , array ('!title ' => strip_tags ($ block ->getAdminTitle ())));
251251 }
252252
@@ -262,7 +262,7 @@ class LayoutRendererEditorParagraphs extends LayoutRendererEditor {
262262 * @return string
263263 * A Backdrop menu path.
264264 */
265- function getUrl ($ command ) {
265+ public function getUrl ($ command ) {
266266 $ args = func_get_args ();
267267 $ command = array_shift ($ args );
268268 $ url = 'admin/structure/paragraphs/layouts/manage/ ' . $ this ->layout ->name . '/ ' . $ command . '/ ' . $ this ->plugin ['name ' ];
0 commit comments