You are here

public function ResourceFieldCollectionInterface::setContext in RESTful 7.2

Sets a context for the group of fields.

Parameters

string $context_id: The context identifier. Ex: 'cache_fragments'.

ArrayCollection $context: The context.

1 method overrides ResourceFieldCollectionInterface::setContext()
ResourceFieldCollection::setContext in src/Plugin/resource/Field/ResourceFieldCollection.php
Sets a context for the group of fields.

File

src/Plugin/resource/Field/ResourceFieldCollectionInterface.php, line 126
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldCollectionInterface.

Class

ResourceFieldCollectionInterface

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function setContext($context_id, ArrayCollection $context);