[uml] BlockCacheKind

Webel module:

Package/Namespace: 

UML element type:

OOE stereotypes:

UML Diagram
Click on the UML diagram to view it in a lightbox image viewer. You may then zoom in (or just open the image in a new web browser tab using the Download Original link to view large diagrams).

UML modelling domain:

Note how changed type of consts from 'mixed' in reverse-engineered PHP Class to 'bitmap' in wrapper @Component.

Code examples

From OoeBridge:

  /**
   *
   * @var \Drupal\ooe\Block\IBlock
   */
  private $block_demo;
 
  /**
   *
   * @return \Drupal\ooe\Block\IBlock
   *   Lazily creates a demo block.
   */
  protected function block_demo() {
    if (empty($this->block_demo)) {
      $this->block_demo = $this->factory()->newBlock(
          $this->getModule() . "_block_demo", $this->getModuleDisplayName() . ': Demo block');
      $this->block_demo
          ->setCache(BlockCacheKind::CACHE_PER_ROLE)
          ->setRegion($this->region_sidebar_1st())
          ->setStatus(BlockStatusKind::ENABLED);
    }
    return $this->block_demo;
  }
Notes (policies)
Visit also