You are here

public function BaseFieldOverride::isDisplayConfigurable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php \Drupal\Core\Field\Entity\BaseFieldOverride::isDisplayConfigurable()

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/Entity/BaseFieldOverride.php, line 124
Contains \Drupal\Core\Field\Entity\BaseFieldOverride.

Class

BaseFieldOverride
Defines the base field override entity.

Namespace

Drupal\Core\Field\Entity

Code

public function isDisplayConfigurable($context) {
  return $this
    ->getBaseFieldDefinition()
    ->isDisplayConfigurable($context);
}