code: public function attachBehaviors($behaviors)
      {
          $this->ensureBehaviors();
          foreach ($behaviors as $name => $behavior) {
              $this->attachBehaviorInternal($name, $behavior);
          }
      }
docs: Attaches a list of behaviors to the component.
  Each behavior is indexed by its name and should be a [[Behavior]] object,
  a string specifying the behavior class, or an configuration array for creating the behavior.
  @param array $behaviors list of behaviors to be attached to the component
  @see attachBehavior()