You are here

public static function SendinblueBlock::create in SendinBlue 8

Same name in this branch
  1. 8 src/Plugin/Derivative/SendinblueBlock.php \Drupal\sendinblue\Plugin\Derivative\SendinblueBlock::create()
  2. 8 src/Plugin/Block/SendinblueBlock.php \Drupal\sendinblue\Plugin\Block\SendinblueBlock::create()
Same name and namespace in other branches
  1. 8.2 src/Plugin/Derivative/SendinblueBlock.php \Drupal\sendinblue\Plugin\Derivative\SendinblueBlock::create()

Creates a new class instance.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the fetcher.

string $base_plugin_id: The base plugin ID for the plugin ID.

Return value

static Returns an instance of this fetcher.

Overrides ContainerDeriverInterface::create

File

src/Plugin/Derivative/SendinblueBlock.php, line 45

Class

SendinblueBlock
Provides block plugin definitions for sendinblue blocks.

Namespace

Drupal\sendinblue\Plugin\Derivative

Code

public static function create(ContainerInterface $container, $blockName) {
  return new static($blockName, $container
    ->get('entity_type.manager'));
}