コード例 #1
0
 /**
  * Checks if entity **has any** of the given tags.
  *
  * @param string $model Class name of the model.
  * @param object $behavior Instance of the behavior.
  * @param object $entity
  * @return boolean
  */
 public function hasAnyTags($model, Behavior $behavior, Entity $entity, array $tags)
 {
     return (bool) array_intersect($entity->tags(['serialized' => false]), $tags);
 }