You are here

public static function DomainAccessManagerInterface::getDefaultValue in Domain Access 8

Get the default field value for an entity.

Parameters

\Drupal\Core\Entity\FieldableEntityInterface $entity: The entity being created.

\Drupal\Core\Field\FieldDefinitionInterface $definition: The field being created.

Return value

array The default field value(s).

1 method overrides DomainAccessManagerInterface::getDefaultValue()
DomainAccessManager::getDefaultValue in domain_access/src/DomainAccessManager.php
Get the default field value for an entity.

File

domain_access/src/DomainAccessManagerInterface.php, line 73

Class

DomainAccessManagerInterface
Checks the access status of entities based on domain settings.

Namespace

Drupal\domain_access

Code

public static function getDefaultValue(FieldableEntityInterface $entity, FieldDefinitionInterface $definition);