You are here

AutomaticContext.php in Chaos Tool Suite (ctools) 8.3

File

src/Context/AutomaticContext.php
View source
<?php

namespace Drupal\ctools\Context;

use Drupal\Core\Plugin\Context\Context;

/**
 * Provides a class to indicate that this context is always present.
 *
 * @internal
 *
 * @todo Move into core.
 */
class AutomaticContext extends Context {

  /**
   * Returns TRUE if this context is automatic and always available.
   *
   * @return bool
   */
  public function isAutomatic() {
    return TRUE;
  }

}

Classes

Namesort descending Description
AutomaticContext Provides a class to indicate that this context is always present.