eca-1.0.x-dev/modules/form/src/Plugin/Action/FormFieldAccess.php

modules/form/src/Plugin/Action/FormFieldAccess.php
<?php

namespace Drupal\eca_form\Plugin\Action;

use Drupal\Core\StringTranslation\TranslatableMarkup;

/**
 * Set access to a form field.
 *
 * @Action(
 *   id = "eca_form_field_access",
 *   label = @Translation("Form field: set access"),
 *   description = @Translation("Set access to a form field."),
 *   eca_version_introduced = "1.0.0",
 *   type = "form"
 * )
 */
class FormFieldAccess extends FormFlagFieldActionBase {

  /**
   * {@inheritdoc}
   */
  protected function getFlagName(bool $human_readable = FALSE): string|TranslatableMarkup {
    return $human_readable ? $this->t('access') : 'access';
  }

}

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

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