BaseFieldDefinition::isDisplayConfigurable

public BaseFieldDefinition::isDisplayConfigurable($display_context)

Returns whether the display for the field can be configured.

Parameters

string $display_context: The display context. Either 'view' or 'form'.

Return value

bool TRUE if the display for this field is configurable in the given context. If TRUE, the display options returned by getDisplayOptions() may be overridden via the respective entity display.

Overrides FieldDefinitionInterface::isDisplayConfigurable

See also

\Drupal\Core\Entity\Display\EntityDisplayInterface

File

core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 433

Class

BaseFieldDefinition
A class for defining entity fields.

Namespace

Drupal\Core\Field

Code

public function isDisplayConfigurable($display_context) {
  return isset($this->definition['display'][$display_context]['configurable']) ? $this->definition['display'][$display_context]['configurable'] : FALSE;
}
doc_Drupal
2016-10-29 08:45:42
Comments
Leave a Comment

Please login to continue.