Skip to content
Browse files

added removeChild method so we can create an adminclass

  • Loading branch information...
1 parent 228becd commit c7922367bd6547500debaead047862c03b67d458 @elHornair elHornair committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 Document/ContainerBlock.php
View
11 Document/ContainerBlock.php
@@ -56,4 +56,15 @@ public function addChild(BlockInterface $child, $key = null)
return $this->children->add($child);
}
+
+ /**
+ * Remove a child from this container
+ *
+ * @param string $key
+ * @return void
+ */
+ public function removeChild($key)
+ {
+ $this->children->remove($key);
+ }
}

0 comments on commit c792236

Please sign in to comment.
Something went wrong with that request. Please try again.