You are here

interface TcaSettingsManagerInterface in Token Content Access 2.0.x

Same name and namespace in other branches
  1. 8 src/TcaSettingsManagerInterface.php \Drupal\tca\TcaSettingsManagerInterface

Interface TcaSettingsManagerInterface.

@package Drupal\tca

Hierarchy

Expanded class hierarchy of TcaSettingsManagerInterface

All classes that implement TcaSettingsManagerInterface

File

src/TcaSettingsManagerInterface.php, line 10

Namespace

Drupal\tca
View source
interface TcaSettingsManagerInterface {

  /**
   * Save settings for an entity or bundle.
   *
   * @param array $settings
   *   The settings for the TcaSettings entity.
   * @param string $entity_type_id
   *   The entity type (e.g. node) as a string.
   * @param string $entity_id
   *   The entity ID as a string.
   */
  public function saveSettings(array $settings, $entity_type_id, $entity_id);

  /**
   * Load settings for an entity or bundle, or load the defaults.
   *
   * Load TCA settings appropriate to the given config or
   * default settings if not available.
   *
   * @param string $entity_type_id
   *   The entity type (e.g. node) as a string.
   * @param string $entity_id
   *   The entity ID as a string.
   *
   * @return \Drupal\Core\Config\ImmutableConfig
   *   The TcaSettings Config object.
   */
  public function loadSettingsAsConfig($entity_type_id, $entity_id);

}

Members

Namesort descending Modifiers Type Description Overrides
TcaSettingsManagerInterface::loadSettingsAsConfig public function Load settings for an entity or bundle, or load the defaults. 1
TcaSettingsManagerInterface::saveSettings public function Save settings for an entity or bundle. 1