final class O365LinksBlock extends BlockBase implements ContainerFactoryPluginInterface

Provides a 'Microsoft 365 Application Links' block.

Traits

UncacheableDependencyTrait

Properties

protected ConfigFactoryInterface $configFactory

The config factory.

protected O365LinksConstants $o365LinksConstants

The o365_links.constants service.

Methods

__construct(array $configuration, string $plugin_id, mixed $plugin_definition, ConfigFactoryInterface $config_factory, O365LinksConstants $o365_links_constants)

Constructs a new O365LinksBlock instance.

array
build()

{@inheritdoc}

static 
create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)

{@inheritdoc}

Details

at line 59
__construct(array $configuration, string $plugin_id, mixed $plugin_definition, ConfigFactoryInterface $config_factory, O365LinksConstants $o365_links_constants)

Constructs a new O365LinksBlock instance.

Parameters

array $configuration

The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.

string $plugin_id

The plugin_id for the plugin instance.

mixed $plugin_definition

The plugin implementation definition.

ConfigFactoryInterface $config_factory

The config factory.

O365LinksConstants $o365_links_constants

The o365_links.constants service.

at line 75
array build()

{@inheritdoc}

Return Value

array

at line 68
static create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)

{@inheritdoc}

Parameters

ContainerInterface $container
array $configuration
$plugin_id
$plugin_definition