AutomaticContext.php

Same filename and directory in other branches
  1. 4.0.x src/Context/AutomaticContext.php

Namespace

Drupal\ctools\Context

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
   *   If the context is automatic or not.
   */
  public function isAutomatic() {
    return TRUE;
  }

}

Classes

Title Deprecated Summary
AutomaticContext Provides a class to indicate that this context is always present.