We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bcf557 commit 9d2aabaCopy full SHA for 9d2aaba
src/Collections/Sites.php
@@ -137,6 +137,19 @@ public function filterByName($regex = '(.*)')
137
return $this->filterByRegex('name', $regex);
138
}
139
140
+ /**
141
+ * Filters the members of this collection by their label.
142
+ *
143
+ * @param string $regex
144
+ * Non-delimited PHP regex to filter site names by
145
146
+ * @return Sites
147
+ */
148
+ public function filterByLabel($regex = '(.*)')
149
+ {
150
+ return $this->filterByRegex('label', $regex);
151
+ }
152
+
153
/**
154
* Filters an array of sites by the plan name.
155
*
0 commit comments