public function getPlaceholders(BlockInterface $block = null) { $placeholders = []; for ($i = 0; $i < $block->getColumnCount(); $i++) { $placeholders[$i] = sprintf('Column %d', $i + 1); } return $placeholders; }
/** * @param BlockInterface $block * * @return array */ public function getGutterStyles(BlockInterface $block) { $gutterStyles = array(); if ($block->getColumnCount()) { $properties = $block->getProperties(); if (isset($properties['gutters']) && count($properties['gutters']) > 0) { foreach ($properties['gutters'] as $screen => $cols) { foreach ($cols as $col => $span) { $gutterStyles[$col][] = "p-{$screen}-{$span}"; } } } } return $gutterStyles; }