flow-1.0.0-beta8/src/Plugin/flow/Derivative/Subject/LoadDeriver.php

src/Plugin/flow/Derivative/Subject/LoadDeriver.php
<?php

namespace Drupal\flow\Plugin\flow\Derivative\Subject;

use Drupal\flow\Plugin\flow\Derivative\ContentDeriverBase;

/**
 * Subject plugin deriver for loaded content.
 *
 * @see \Drupal\flow\Plugin\flow\Subject\Load
 */
class LoadDeriver extends ContentDeriverBase {

  /**
   * {@inheritdoc}
   */
  public function getDerivativeDefinitions($base_plugin_definition) {
    $derivatives = parent::getDerivativeDefinitions($base_plugin_definition);
    foreach ($derivatives as &$derivative) {
      $derivative['label'] = $this->t('Loaded @content', ['@content' => $derivative['label']]);
    }
    return $derivatives;
  }

}

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

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