You are here

protected function GridWidget::getCellProperties in Paragraphs grid 8

Returns cell property definition (like offset, order ...) from grid config.

Parameters

bool|string $key: If set method returns a special property or all if not.

Return value

mixed Properties definition.

1 call to GridWidget::getCellProperties()
GridWidget::formElement in src/Plugin/Field/FieldWidget/GridWidget.php
Returns the form for a single field widget.

File

src/Plugin/Field/FieldWidget/GridWidget.php, line 195

Class

GridWidget
Plugin implementation of the 'grid_widget' widget.

Namespace

Drupal\paragraphs_grid\Plugin\Field\FieldWidget

Code

protected function getCellProperties($key = FALSE) {
  $this
    ->getGridConfig('cell-properties');
  $properties = $this
    ->getGridConfig('cell-properties');
  return $key ? $properties[$key] : $properties;
}