og_sm-8.x-1.0/og_sm_config/src/Config/SiteConfigFactoryOverrideInterface.php

og_sm_config/src/Config/SiteConfigFactoryOverrideInterface.php
<?php

namespace Drupal\og_sm_config\Config;

use Drupal\Core\Config\ConfigFactoryOverrideInterface;
use Drupal\node\NodeInterface;

/**
 * Provides site overrides for the configuration factory.
 */
interface SiteConfigFactoryOverrideInterface extends ConfigFactoryOverrideInterface {

  /**
   * Get language override for given site and configuration name.
   *
   * @param \Drupal\node\NodeInterface $site
   *   The site node.
   * @param string $name
   *   Configuration name.
   *
   * @return \Drupal\og_sm_config\Config\SiteConfigOverride
   *   Configuration override object.
   */
  public function getOverride(NodeInterface $site, $name);

  /**
   * Returns the storage instance for a particular site.
   *
   * @param \Drupal\node\NodeInterface $site
   *   The site node.
   *
   * @return \Drupal\Core\Config\StorageInterface
   *   The storage instance for a particular site.
   */
  public function getStorage(NodeInterface $site);

  /**
   * Gets the site node used to override configuration data.
   *
   * @return \Drupal\node\NodeInterface
   *   The site node.
   */
  public function getSite();

  /**
   * Sets the site to be used in configuration overrides.
   *
   * @param \Drupal\node\NodeInterface $site
   *   The site node.
   */
  public function setSite(NodeInterface $site = NULL);

}

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

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