custom_field-1.0.x-dev/modules/custom_field_linkit/src/Hook/ConfigSchemaHooks.php

modules/custom_field_linkit/src/Hook/ConfigSchemaHooks.php
<?php

namespace Drupal\custom_field_linkit\Hook;

use Drupal\Core\Hook\Attribute\Hook;

/**
 * Provides hooks related to config schemas.
 */
class ConfigSchemaHooks {

  /**
   * Implements hook_config_schema_info_alter().
   */
  #[Hook('config_schema_info_alter')]
  public function configSchemaInfoAlter(array &$definitions): void {
    $definitions['custom_field.field.*']['mapping'] += [
      'linkit_profile' => [
        'type'  => 'string',
        'label' => t('Linkit profile'),
      ],
      'linkit_auto_link_text' => [
        'type'  => 'boolean',
        'label' => t('Automatically populate link text from entity label'),
      ],
    ];
  }

}

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

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