farm-2.x-dev/modules/core/entity/tests/modules/farm_entity_test/src/Plugin/Log/LogType/TestOverride.php

modules/core/entity/tests/modules/farm_entity_test/src/Plugin/Log/LogType/TestOverride.php
<?php

namespace Drupal\farm_entity_test\Plugin\Log\LogType;

/**
 * Provides the test_override log type.
 *
 * @LogType(
 *   id = "test_override",
 *   label = @Translation("Test Override"),
 * )
 */
class TestOverride extends Test {

  /**
   * {@inheritdoc}
   */
  public function buildFieldDefinitions() {

    // We are inheriting from the Test log type, which adds a bundle field. We
    // are going to return an empty array to show that we can disable those
    // default fields on specific log types.
    return [];
  }

}

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

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