protected function GridFieldType::cellPropsOptions in Paragraphs grid 8
Return optional options for form element.
Return value
array The optional options.
1 call to GridFieldType::cellPropsOptions()
- GridFieldType::storageSettingsForm in src/
Plugin/ Field/ FieldType/ GridFieldType.php - Returns a form for the storage-level settings.
File
- src/
Plugin/ Field/ FieldType/ GridFieldType.php, line 73
Class
- GridFieldType
- Plugin implementation of the 'grid_field_type' field type.
Namespace
Drupal\paragraphs_grid\Plugin\Field\FieldTypeCode
protected function cellPropsOptions() {
$options = [];
foreach ($this->gridConfig
->get('cell-properties') as $def) {
if ($def['optional']) {
$options[$def['name']] = $def['label'];
}
}
return $options;
}