You are here

protected property DomainAdminSelection::$fieldType in Domain Access 8

Sets the context for the alter hook.

The only difference between this selector and its parent are the permissions used to restrict access. Since the field information is not available through the DefaultSelector class, we have to coerce that information to pass it to our hook.

We could do this by reading the id from the annotation, but setting an explicit variable seems more obvious for developers.

Type: string

Overrides DomainSelection::$fieldType

File

domain/src/Plugin/EntityReferenceSelection/DomainAdminSelection.php, line 32

Class

DomainAdminSelection
Provides entity reference selections for the domain entity type.

Namespace

Drupal\domain\Plugin\EntityReferenceSelection

Code

protected $fieldType = 'admin';