cshs-8.x-1.x-dev/src/IsApplicable.php

src/IsApplicable.php
<?php

namespace Drupal\cshs;

use Drupal\Core\Field\FieldDefinitionInterface;

/**
 * Provides the `isApplicable` implementation for formatters and widgets.
 */
trait IsApplicable {

  /**
   * {@inheritdoc}
   */
  public static function isApplicable(FieldDefinitionInterface $field_definition): bool {
    return 'taxonomy_term' === $field_definition->getFieldStorageDefinition()->getSetting('target_type');
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc