You are here

protected function NameAdditionalPreferredTrait::getTraitUsageIsField in Name Field 8

2 calls to NameAdditionalPreferredTrait::getTraitUsageIsField()
NameAdditionalPreferredTrait::getEmptyOption in src/Traits/NameAdditionalPreferredTrait.php
NameAdditionalPreferredTrait::settingsNameAdditionalPreferredSummary in src/Traits/NameAdditionalPreferredTrait.php

File

src/Traits/NameAdditionalPreferredTrait.php, line 172

Class

NameAdditionalPreferredTrait
Name form for preferred and alternative settings trait.

Namespace

Drupal\name\Traits

Code

protected function getTraitUsageIsField() {
  return is_subclass_of($this, 'Drupal\\Core\\Field\\FieldItemBase');
}