public function Provider::mergeCacheMaxAge in oEmbed 8
Merges the maximum age (in seconds) with the existing maximum age.
The max age will be set to the given value if it is lower than the existing value.
Parameters
int $max_age: The max age to associate.
Return value
$this
Throws
\InvalidArgumentException Thrown if a non-integer value is supplied.
Overrides RefinableCacheableDependencyTrait::mergeCacheMaxAge
File
- src/
Entity/ Provider.php, line 122 - Contains \Drupal\oembed\Entity\Provider.
Class
- Provider
- Defines the Provider entity.
Namespace
Drupal\oembed\EntityCode
public function mergeCacheMaxAge($max_age) {
// TODO: Implement mergeCacheMaxAge() method.
}