You are here

public function EntityConflictDiscoveryEvent::getContextParameter in Conflict 8.2

Returns a parameter value from the context bag.

Parameters

$parameter: The parameter key.

mixed $default: The default value if the parameter key does not exist

Return value

mixed|null

File

src/Event/EntityConflictDiscoveryEvent.php, line 132

Class

EntityConflictDiscoveryEvent

Namespace

Drupal\conflict\Event

Code

public function getContextParameter($parameter, $default = NULL) {
  return $this->context
    ->get($parameter, $default);
}