/**
  * Add a marking to the list of markings. To be called by the different edit extensions.
  * @param $marking InlineEditorMarking
  */
 public function addMarking(InlineEditorMarking $marking)
 {
     if (!$marking->isValid()) {
         return;
     }
     $this->markings[$marking->getId()] = $marking;
 }